/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CorePanel.java
 *
 * Created on Nov 21, 2009, 1:06:29 AM
 */

package wrap.core;

/**
 *
 * @author liang
 */
public class CPanel extends javax.swing.JPanel {

    /** Creates new form CorePanel */
    public CPanel() {
        initComponents();
        CC.getInstance().setPanel(this);
        //this.add(new javax.swing.JButton("CPanel-btn-1"));
        //this.validate();
//        System.out.println("Hello-oo1");
        CC.to(CC.START);
        
//        javax.swing.JPanel p = new javax.swing.JPanel();
//        p.setLayout(new java.awt.BorderLayout());
//        p.setFont(p.getFont().deriveFont(34f));
//        p.add(new javax.swing.JButton("helloworld"));
//        add(p);
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        setBackground(java.awt.Color.white);
        setFont(new java.awt.Font("DejaVu Sans", 0, 36)); // NOI18N
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                CPanel.this.mousePressed(evt);
            }
        });
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                CPanel.this.componentShown(evt);
            }
        });
        setLayout(new java.awt.BorderLayout());
    }// </editor-fold>//GEN-END:initComponents

    private void componentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_componentShown
//        System.out.println("shown");
        //CC.to(CC.START);
    }//GEN-LAST:event_componentShown

    private void mousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mousePressed
//        System.out.println("click");
//        CC.to(CC.START);
    }//GEN-LAST:event_mousePressed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables

}
